package com.wisdytech.ccdserver.bucket.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wisdytech.ccdserver.bucket.dto.BucketTaskDto;
import com.wisdytech.ccdserver.bucket.dto.TableBuckets;
import com.wisdytech.ccdserver.bucket.model.BucketTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IBucketTaskDao extends BaseMapper<BucketTask> {

    IPage<BucketTaskDto> findTaskAndSearchProgress(Page<BucketTask> bucketTaskPage, @Param("param") BucketTaskDto bucketTaskDto);

    List<TableBuckets> customerSearchBuckets();

    Long checkIsAdmin(@Param("userName") String userName);
}
